package com.huirui.server.pojo.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

@Data
@Schema(description = "订单预支付信息")
public class OrderPrepareInfoVo {
    private String receiverName;
    private String receiverPhone;
    private String receiverProvince;
    private String receiverCity;
    private String receiverDistrict;
    private String receiverAddress;
    @JsonFormat(shape = JsonFormat.Shape.NUMBER, pattern = "0.00")
    @Schema(description = "商品总价")
    private BigDecimal totalPrice;
    @JsonFormat(shape = JsonFormat.Shape.NUMBER, pattern = "0.00")
    @Schema(description = "折扣")
    private BigDecimal discount;
    @JsonFormat(shape = JsonFormat.Shape.NUMBER, pattern = "0.00")
    @Schema(description = "总计价格")
    private BigDecimal finalPrice;
    @JsonFormat(shape = JsonFormat.Shape.NUMBER, pattern = "0.00")
    @Schema(description = "运费")
    private BigDecimal shippingPrice;
    @JsonFormat(shape = JsonFormat.Shape.NUMBER, pattern = "0.00")
    @Schema(description = "账户余额")
    private BigDecimal amountBalance;
    @Schema(description = "商品总种类")
    private Long types;
    @Schema(description = "商品总数量")
    private Long pieces;
    @Schema(description = "订单商品列表")
    private List<OrderItemInfoVo> orderItemInfoVoList;
    @Schema(description = "订单类型")
    private Long orderType;
    @JsonFormat(shape = JsonFormat.Shape.NUMBER, pattern = "0.00")
    @Schema(description = "运费起征点")
    private BigDecimal freeShippingThreshold;
    @Schema(description = "商品运费")
    @JsonFormat(shape = JsonFormat.Shape.NUMBER, pattern = "0.00")
    private BigDecimal shippingFee;
}
